/**
 * 做日志记录的aop
 * @author jiangzhuang jiangzhuang1987@gmail.com
 * @date 2010-4-22
 * @version v1.0
 * 
 */
package com.jz.aj;

public aspect LogAj {

	pointcut beforeMsg() : execution(* com.jz.dao.impl.*.save*(..));

	pointcut afterMsg() : execution(* com.jz.dao.impl.*.save*(..));

	pointcut aroundMsg() : execution(* com.jz.dao.impl.*.save*(..));

	before() : beforeMsg() {
		System.out.println("before aspectj");
	}

	Object around() : aroundMsg() {
		System.out.println("around aspectj");
		Object result = proceed();
		return result;
	}

	after() : afterMsg() {
		System.out.println("after aspectj");

	}

}
